package io.gitee.zhangbinhub.admin.oauth.mapper;

import io.gitee.zhangbinhub.admin.oauth.entity.User;
import io.gitee.zhangbinhub.admin.resource.server.vo.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserMapper {
    UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);

    UserVo entityToVo(User user);
}
